package org.wishwork.api.purchase;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wishwork.api.purchase.query.PurchaseQueryApi;
import org.wishwork.api.purchase.upload.PurchaseUploadApi;
import org.wishwork.context.Context;

/**
 * @description: 采购API
 * @author: WangYX
 * @create: 2022-04-08 11:29
 * @Version: 1.0.0
 **/

public class PurchaseApi {

    private static final Logger log = LoggerFactory.getLogger(PurchaseApi.class);

    private Context context;

    private final PurchaseQueryApi purchaseQueryApi;

    private final PurchaseUploadApi purchaseUploadApi;

    public PurchaseApi(Context context) {
        this.context = context;
        this.purchaseQueryApi = new PurchaseQueryApi(context);
        this.purchaseUploadApi = new PurchaseUploadApi(context);
    }

    /**
     * 采购单查询
     *
     * @return
     */
    public PurchaseQueryApi query() {
        return this.purchaseQueryApi;
    }

    /**
     * 采购单上传
     *
     * @return
     */
    public PurchaseUploadApi upload() {
        return this.purchaseUploadApi;
    }


}
